package cn.stylefeng.guns.modular.inventory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @version 1.0
 * @date 2021/4/11 23:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "inventory_offline_stock_update_message")
public class InventoryOfflineStockUpdateMessageEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private byte[] id;

    /**
     * 库存更新消息id
     */
    @TableField(value = "message_id")
    private String messageId;

    /**
     * 库存更新操作类型
     */
    @TableField(value = "`operation`")
    private Boolean operation;

    /**
     * 参数，json格式
     */
    @TableField(value = "`parameter`")
    private String parameter;

    /**
     * 参数类型
     */
    @TableField(value = "parameter_clazz")
    private String parameterClazz;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_MESSAGE_ID = "message_id";

    public static final String COL_OPERATION = "operation";

    public static final String COL_PARAMETER = "parameter";

    public static final String COL_PARAMETER_CLAZZ = "parameter_clazz";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}